
include ../common.mk

TARGET:= ../main/dvb.a

SRC_LIST:= tsfile.cpp packet.cpp section.cpp table.cpp

OBJ_LIST:= $(patsubst %.cpp, %.o,$(SRC_LIST))

INCLUDE:= -I../portable/ -I../utility/

$(TARGET): $(OBJ_LIST)
	ar -r $@ $^

$(OBJ_LIST):%.o:%.cpp
	g++ $(FLAG) $(INCLUDE) -c $^

test:
	@echo TARGET=$(TARGET)
	@echo SRC_LIST=$(SRC_LIST)
	@echo OBJ_LIST=$(OBJ_LIST)
	@echo INCLUDE=$(INCLUDE)
	@echo FLAG=$(FLAG)

clean:
	-rm -f $(TARGET) $(OBJ_LIST)

